package com.learn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.crypto.password.PasswordEncoder;

@SpringBootApplication
@MapperScan({"com.learn.mapper","com.learn.security.mapper"}) // Scan for MyBatis mappers
public class LearnApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(LearnApplication.class, args);
        // ConfigurableListableBeanFactory factory = context.getBeanFactory();
        // PasswordEncoder passwordEncoder = factory.getBean("passwordEncoder", PasswordEncoder.class);
        // System.out.println("Password Encoder Bean: " + passwordEncoder);
    }
}
